<me:UIABAUFM x:Class="WPFExcelReport.TMUVK"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                     xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIABAUFM.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:GB2312Convert8859P1 x:Key="gb2312"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
    </me:UIABAUFM.Resources>
    <DataGrid   
             AutoGenerateColumns="False" 
             EnableRowVirtualization="False" 
             Name="dlgMaster" 
             IsReadOnly="True" 
             ItemsSource="{Binding Source={StaticResource vwMaster }}" 
             HeadersVisibility="Column" 
             CanUserReorderColumns="True" 
             CanUserResizeRows="True" 
             RowDetailsVisibilityMode="VisibleWhenSelected" 
             Width="Auto" Height="Auto"
          >
        <DataGrid.Columns>
            <DataGridTextColumn Binding="{Binding Path=KDKUNDNA,Converter={StaticResource gb2312}}" Header="{Binding Source={Localization:Translate Word=客户}}" Width="Auto"  />
            <DataGridTextColumn Binding="{Binding Path=ABAVKAUFKRS}" Header="" Width="Auto"  />
            <DataGridTextColumn Binding="{Binding Path=ABAVKAUFLFD,Converter={StaticResource pnum}}" Header="{Binding Source={Localization:Translate Word=需求}}" Width="Auto"  />
            <DataGridTextColumn Binding="{Binding Path=ABAVKAUFPOS, Converter={StaticResource ResourceKey=pnum}}"   Width="Auto" />
            <DataGridTextColumn Binding="{Binding Path=ABAVKUPOS, Converter={StaticResource ResourceKey=pnum}}" Header="{Binding Source={Localization:Translate Word=行}}" Width="Auto"/>
            <DataGridTextColumn Binding="{Binding Path=ABARESMG,Converter={StaticResource d1000}}" Header="{Binding Source={Localization:Translate Word=预留}}" Width="Auto"  />
        </DataGrid.Columns>
    </DataGrid>
</me:UIABAUFM>
